package com.itcam.interview.pro00.disignmodel.chain;

// 1. 定义处理者接口
abstract class Approver {
    protected Approver nextApprover;

//    public void setNextApprover(Approver nextApprover) {
//        this.nextApprover = nextApprover;
//    }

    // 支持链式调用
    public Approver setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
        // 返回当前对象，支持链式调用
        return this;
    }

    public abstract void processRequest(int days);
}